Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

web/library: Remove worker-loader #1069

Merged
merged 1 commit into from Sep 6, 2018
Merged

web/library: Remove worker-loader #1069

merged 1 commit into from Sep 6, 2018

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Sep 2, 2018

Since the top-level presets aim to cover the 80% case, and web workers are still less common. If after Neutrino 9's release there ends up being demand for them, we'd be better off having a separate opt-in preset (similar to @neutrinojs/pwa).

@edmorley edmorley added this to the v9 milestone Sep 2, 2018
@edmorley edmorley self-assigned this Sep 2, 2018
@eliperelman
Copy link
Member

Could you elaborate on the benefit to removing this? Do you feel like our assumptions here make it difficult to override this in the future?

@edmorley
Copy link
Member Author

edmorley commented Sep 4, 2018

Ah good question. The reason was just that I don't think many users will be using it, and that it's another dependency that has to be downloaded and then require()ed during the build. It also cumulatively adds to the overall cognitive overhead of understanding the web preset and the resultant --inspect output.

ie: This was just a continuation of my ongoing work to slim down Neutrino 9 as much of possible compared to the accumulation of features/complexity that we'd ended up with Neutrino 8 (whose neutrino build --inspect-new webpack config for the React preset is 400 lines long, compared to 240 lines for the equivalent on master).

If you felt strongly about leaving it then, then happy to do so. Do you know of many projects that use web workers with Neutrino? :-)

@eliperelman
Copy link
Member

@edmorley I have in the past, which is why I had added it, since it gave a way to use workers with zero config. That said, I haven't used it in a while, and don't have a major issue removing it. My biggest concern was being able to import as worker with no config. 😄

@edmorley
Copy link
Member Author

edmorley commented Sep 5, 2018

I think in the future a combined opt-in preset for various worker types might be nice to have? (And consolidate with @neutrinojs/pwa?)

Since the top-level presets aim to cover the 80% case, and web workers
are still less common. If after Neutrino 9's release there ends up
being demand for them, we'd be better off having a separate opt-in
preset (similar to `@neutrinojs/pwa`).
@edmorley edmorley merged commit 3b323e2 into neutrinojs:master Sep 6, 2018
@edmorley edmorley deleted the rm-worker-loader branch September 6, 2018 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants